<h:layout tpl="_layout"/>

<h:tabset selected.style="font-weight:bold">
	<h:tab action=index>基本选项</h:tab>
	<c:foreach from=$names item=name>
		<h:tab action=locale param.name=$name cond.name=$name>{{$name}}</h:tab>
	</c:foreach>
</h:tabset>

<f:form id="config">
	<table>
		<tr>
			<td width="120">时区</td>
			<td><f:field name=opt[timezone] value_get=$opt.timezone/> <a href="http://www.php.net/manual/en/timezones.php" target="_blank">查看所有支持的时区</a></td>
		</tr>
		<tr>
			<td>消息路径</td>
			<td><f:field name=opt[message] value_get=$opt.message size=70/></td>
		</tr>
		<tr>
			<td>选项路径</td>
			<td><f:field name=opt[opt] value_get=$opt.opt size=70/></td>
		</tr>
		<tr>
			<td colspan="2"><input type="submit" value="保 存"/></td>
		</tr>
	</table>
</f:form>



<table width="630" border="0">
	<tr>
		<td>键名</td>
		<td>值</td>
	</tr>
	<f:form id="new">
	<tr>
		<td><input type="text" name="key"/></td>
		<td><input type="text" name="message" size="57"/> <input type="submit" value="加"/></td>
	</tr>
	</f:form>
	<f:form id="message">
	<c:foreach from=$messages item=message key=key>
	<tr>
		<td>{{$key}}</td>
		<td><input type="text" name="message[{{$key}}]" size="57" value="{{$message}}"/> <input type="button" value="删" onclick="window.location='<h:uri action='delete' key=$key/>'"/></td>
	</tr>
	</c:foreach>
	<tr>
		<td colspan="2"><input type="submit" value="保 存"/></td>
	</tr>
	</f:form>
</table>
